package com.ftg.learn.myself;

import java.util.concurrent.*;

/**
 * @author 布衣
 */
public class ThreadPool4Learn {

    public static void main(String[] args) {
        //线程池
        Executor pools = Executors.newFixedThreadPool(5);

        pools.execute(() -> System.out.println("111"));

        pools.execute(() -> System.out.println("22"));

        pools.execute(()-> System.out.println("333"));
    }

}
